package com.etc.shiro.model;


import lombok.Data;

import java.util.List;

@Data
public class UserMst {
    private String salt;

    public String getCredentialsSalt() {
        return uname + salt + salt;
    }
    private Integer id;
    private List<RoleMst> rlist;
    private String uname;

    private String rname;

    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname == null ? null : uname.trim();
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname == null ? null : rname.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }
}
